package org.lanqiao.dao;

import org.lanqiao.entity.Admin;
import org.lanqiao.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class AdminDao {

    @Autowired
    AdminMapper adminMapper;


    /**
     * @Author 王宇
     * @Description //TODO 判断超管的账号密码是否正确
     * @Date 2019/05/22 17:15
     * @Param [adminAccout, adminPassword]
     * @return org.lanqiao.entity.Admin
     */
    public Admin getAdmin(String adminAccout,String adminPassword){
        Admin admin = adminMapper.getAdmin(adminAccout, adminPassword);
        return admin;
    }
    /**
     * @Author 李玉鑫
     * @Description //TODO
     * @Date 超管收益
     * @Param
     * @return
     *
     */
    public void updateNumber(String adminId,String adminBalance){
        adminMapper.updateNumber(adminId,adminBalance);
    }
}
